300
How do I change the cell's background color

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("C1")
oDCOCX_Exontrol1:Columns:Add("C2")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Cell 1")
	var_Items:[CellValue,h,1] := "Cell 2"
	var_Items:[CellBackColor,h,1] := RGB(255,0,0)

299
How do I change the caption or value for a particular cell

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("C1")
oDCOCX_Exontrol1:Columns:Add("C2")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValue,var_Items:AddItem("Cell 1"),1] := "Cell 2"

298
How do I get the handle of the cell

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root 1")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	var_Items:[CellBold,nil,var_Items:[ItemCell,h,0]] := true

297
How do I retrieve the focused item

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root 1")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	var_Items:[ItemBold,var_Items:FocusItem] := true

296
How do I get the number or count of child items

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root 1")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	var_Items:AddItem(var_Items:[ChildCount,h])

295
How do I enumerate the visible items

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root 1")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	h := var_Items:AddItem("Root 2")
	var_Items:[ItemBold,var_Items:FirstVisibleItem] := true
	var_Items:[ItemBold,var_Items:[NextVisibleItem,var_Items:FirstVisibleItem]] := true

294
How do I enumerate the siblings items

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root 1")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	h := var_Items:AddItem("Root 2")
	var_Items:[ItemBold,var_Items:[NextSiblingItem,var_Items:FirstVisibleItem]] := true
	var_Items:[ItemBold,var_Items:[PrevSiblingItem,var_Items:[NextSiblingItem,var_Items:FirstVisibleItem]]] := true

293
How do I get the parent item

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root 1")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	var_Items:[ItemBold,var_Items:[ItemParent,var_Items:[ItemChild,h]]] := true

292
How do I get the first child item

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root 1")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	var_Items:[ItemBold,var_Items:[ItemChild,h]] := true

291
How do I enumerate the root items

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root 1")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	h := var_Items:AddItem("Root 2")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ItemBold,var_Items:[RootItem,0]] := true
	var_Items:[ItemUnderline,var_Items:[RootItem,1]] := true

290
I have a hierarchy, how can I count the number of root items

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root 1")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	h := var_Items:AddItem("Root 2")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:AddItem(var_Items:RootCount)

289
How can I make an item unselectable, or not selectable

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Column")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("unselectable - you can't get selected")
	var_Items:[SelectableItem,h] := false
	var_Items:AddItem("selectable")

288
How can I hide or show an item

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Column")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("hidden")
	var_Items:[ItemHeight,h] := 0
	var_Items:[SelectableItem,h] := false
	var_Items:AddItem("visible")

287
How can I change the height for all items

oDCOCX_Exontrol1:DefaultItemHeight := 32
oDCOCX_Exontrol1:Columns:Add("Column")
oDCOCX_Exontrol1:Items:AddItem("One")
oDCOCX_Exontrol1:Items:AddItem("Two")

286
How do I change the height of an item
local var_Items as IItems

oDCOCX_Exontrol1:ScrollBySingleLine := true
oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[ItemHeight,var_Items:AddItem("height")] := 128
oDCOCX_Exontrol1:Items:AddItem("enabled")

285
How do I disable or enable an item

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[EnableItem,var_Items:AddItem("disabled")] := false
oDCOCX_Exontrol1:Items:AddItem("enabled")

284
How do I display as strikeout a cell

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellStrikeOut,var_Items:AddItem("strikeout"),0] := true

283
How do I display as strikeout a cell or an item

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValueFormat,var_Items:AddItem("gets <s>strikeout</s> only a portion of text"),0] := exHTML

282
How do I display as strikeout an item

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[ItemStrikeOut,var_Items:AddItem("strikeout")] := true

281
How do I underline a cell

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellUnderline,var_Items:AddItem("underline"),0] := true

280
How do I underline a cell or an item

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValueFormat,var_Items:AddItem("gets <u>underline</u> only a portion of text"),0] := exHTML

279
How do I underline an item

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[ItemUnderline,var_Items:AddItem("underline")] := true

278
How do I display as italic a cell

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellItalic,var_Items:AddItem("italic"),0] := true

277
How do I display as italic a cell or an item

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValueFormat,var_Items:AddItem("gets <i>italic</i> only a portion of text"),0] := exHTML

276
How do I display as italic an item

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[ItemItalic,var_Items:AddItem("italic")] := true

275
How do I bold a cell

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellBold,var_Items:AddItem("bold"),0] := true

274
How do I bold a cell or an item

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValueFormat,var_Items:AddItem("gets <b>bold</b> only a portion of text"),0] := exHTML

273
How do I bold an item

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[ItemBold,var_Items:AddItem("bold")] := true

272
How do I change the foreground color for the item

local var_Items as IItems
local h,hC as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	hC := var_Items:InsertItem(h,nil,"Child 1")
	var_Items:[ItemForeColor,hC] := RGB(255,0,0)
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true

271
How do I change the visual appearance for the item, using your EBN technology

local var_Items as IItems
local h,hC as USUAL

oDCOCX_Exontrol1:VisualAppearance:Add(1,"c:\exontrol\images\normal.ebn")
oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	hC := var_Items:InsertItem(h,nil,"Child 1")
	var_Items:[ItemBackColor,hC] := 0x1000000
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true

270
How do I change the background color for the item

local var_Items as IItems
local h,hC as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	hC := var_Items:InsertItem(h,nil,"Child 1")
	var_Items:[ItemBackColor,hC] := RGB(255,0,0)
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true

269
How do I expand or collapse an item

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true

268
How do I associate an extra data to an item
local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[ItemData,var_Items:AddItem("item")] := "your extra data"

267
How do I get the number or count of items

local var_Items,var_Items1 as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
var_Items1 := oDCOCX_Exontrol1:Items
	var_Items1:AddItem(var_Items1:ItemCount)

266
How can I specify the width of the ActiveX control, when using the InsertControlItem property

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:ScrollBySingleLine := false
oDCOCX_Exontrol1:TreeColumnIndex := 1
oDCOCX_Exontrol1:DrawGridLines := exAllLines
oDCOCX_Exontrol1:Columns:Add("C1")
oDCOCX_Exontrol1:Columns:Add("C2")
oDCOCX_Exontrol1:Columns:Add("C3")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:InsertControlItem(nil,"MSCAL.Calendar",nil)
	var_Items:[ItemWidth,h] := 128
	var_Items:[CellValue,h,0] := "This is a bit of text that is shown in the first column"
	var_Items:[CellSingleLine,h,0] := exCaptionWordWrap
	var_Items:[CellValue,h,2] := "This is a bit of text that is shown in the third column"
	var_Items:[CellSingleLine,h,2] := exCaptionWordWrap

265
How can I put the ActiveX control in a different column, when using the InsertControlItem property

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:ScrollBySingleLine := false
oDCOCX_Exontrol1:DrawGridLines := exAllLines
oDCOCX_Exontrol1:Columns:Add("C1")
oDCOCX_Exontrol1:Columns:Add("C2")
oDCOCX_Exontrol1:Columns:Add("C3")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:InsertControlItem(nil,"MSCAL.Calendar",nil)
	var_Items:[CellValue,h,0] := "This is a bit of text that is shown in the first column"
	var_Items:[CellSingleLine,h,0] := exCaptionWordWrap
	var_Items:[ItemWidth,h] := -32001
	var_Items:[CellValue,h,2] := "This is a bit of text that is shown in the third column"
	var_Items:[CellSingleLine,h,2] := exCaptionWordWrap

264
Is there any function I can use to get the program or the control identifier I've been using when called the InsertControlItem

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
oDCOCX_Exontrol1:ScrollBySingleLine := false
oDCOCX_Exontrol1:LinesAtRoot := exLinesAtRoot
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:InsertControlItem(nil,"MSCAL.Calendar",nil)
	var_Items:InsertItem(h,nil,var_Items:[ItemControlID,h])
	var_Items:[ExpandItem,h] := true
	h := var_Items:InsertControlItem(nil,"MSChart20Lib.MSChart",nil)
	var_Items:[ItemAppearance,h] := Etched
	var_Items:InsertItem(h,nil,var_Items:[ItemControlID,h])
	var_Items:[ExpandItem,h] := true

263
How can I change the height of newly created ActiveX control, using the InsertControlItem

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
oDCOCX_Exontrol1:ScrollBySingleLine := false
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[ItemHeight,var_Items:InsertControlItem(nil,"MSCAL.Calendar",nil)] := 64
	var_Items:[ItemAppearance,var_Items:InsertControlItem(nil,"MSChart20Lib.MSChart",nil)] := Etched

262
How can I change the border for newly created ActiveX control, using the InsertControlItem

local var_Items as IItems

oDCOCX_Exontrol1:Columns:Add("Default")
oDCOCX_Exontrol1:ScrollBySingleLine := false
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[ItemAppearance,var_Items:InsertControlItem(nil,"MSCAL.Calendar",nil)] := Sunken
	var_Items:[ItemAppearance,var_Items:InsertControlItem(nil,"MSChart20Lib.MSChart",nil)] := Etched

261
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem

local var_Calendar as ICalendar
local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	// Generate Source for 'Microsoft Calendar Control 2007(MSCAL.OCX)' server from Tools\Automation Server...
	var_Calendar := ICalendar{var_Items:[ItemObject,var_Items:InsertControlItem(h,"MSCAL.Calendar",nil)]}
		var_Calendar:BackColor := RGB(255,255,255)
		var_Calendar:GridCellEffect := 0
		var_Calendar:ShowTitle := false
		var_Calendar:ShowDateSelectors := false
	var_Items:[ExpandItem,h] := true

260
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem

local var_Calendar as ICalendar
local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	// Generate Source for 'Microsoft Calendar Control 2007(MSCAL.OCX)' server from Tools\Automation Server...
	var_Calendar := ICalendar{var_Items:[ItemObject,var_Items:InsertControlItem(h,"MSCAL.Calendar",nil)]}
		var_Calendar:BackColor := RGB(255,255,255)
	var_Items:[ExpandItem,h] := true

259
How can I insert an ActiveX control

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	var_Items:InsertControlItem(h,"MSCAL.Calendar",nil)
	var_Items:[ExpandItem,h] := true

258
How can I change at runtime the parent of the item

local var_Items as IItems
local hC,hP as USUAL

oDCOCX_Exontrol1:LinesAtRoot := exLinesAtRoot
oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	hP := var_Items:AddItem("Root")
	hC := var_Items:AddItem("Child")
	var_Items:SetParent(hC,hP)

257
How can I sort the items

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
oDCOCX_Exontrol1:Columns:[Item,"Default"]:SortOrder := SortDescending

256
How do I sort the child items

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Root")
	var_Items:InsertItem(h,nil,"Child 1")
	var_Items:InsertItem(h,nil,"Child 2")
	var_Items:[ExpandItem,h] := true
	var_Items:SortChildren(h,0,false)

255
How can I ensure or scroll the control so the item fits the control's client area
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
h := oDCOCX_Exontrol1:Items:AddItem("item")
oDCOCX_Exontrol1:Items:EnsureVisibleItem(h)

254
How can I remove or delete all items

oDCOCX_Exontrol1:Columns:Add("Default")
oDCOCX_Exontrol1:Items:AddItem("removed item")
oDCOCX_Exontrol1:Items:RemoveAllItems()

253
How can I remove or delete an item
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("Default")
h := oDCOCX_Exontrol1:Items:AddItem("removed item")
oDCOCX_Exontrol1:Items:RemoveItem(h)

252
How can I add or insert child items

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:LinesAtRoot := exLinesAtRoot
oDCOCX_Exontrol1:Columns:Add("C1")
oDCOCX_Exontrol1:Columns:Add("C2")
var_Items := oDCOCX_Exontrol1:Items
	h := var_Items:AddItem("Cell 1")
	var_Items:[CellValue,h,1] := "Cell 2"
	var_Items:[CellValue,var_Items:InsertItem(h,nil,"Cell 3"),1] := "Cell 4"
	var_Items:[CellValue,var_Items:InsertItem(h,nil,"Cell 5"),1] := "Cell 6"
	var_Items:[ExpandItem,h] := true

251
How can I add or insert a child item

local var_Items as IItems

oDCOCX_Exontrol1:LinesAtRoot := exLinesAtRoot
oDCOCX_Exontrol1:Columns:Add("Default")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:InsertItem(var_Items:AddItem("root"),nil,"child")

250
How can I add or insert an item

local var_Items as IItems
local h as USUAL

oDCOCX_Exontrol1:Columns:Add("C1")
oDCOCX_Exontrol1:Columns:Add("C2")
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValue,var_Items:AddItem("Cell 1"),1] := "Cell 2"
	h := var_Items:AddItem("Cell 3")
	var_Items:[CellValue,h,1] := "Cell 4"

249
How can I add or insert an item


oDCOCX_Exontrol1:Columns:Add("Default")
oDCOCX_Exontrol1:Items:AddItem("new item")

248
How can I get the columns as they are shown in the control's sortbar
local var_Object as USUAL

var_Object := oDCOCX_Exontrol1:Columns:[ItemBySortPosition,0]

247
How can I access the properties of a column


oDCOCX_Exontrol1:Columns:Add("A")
oDCOCX_Exontrol1:Columns:[Item,"A"]:HeaderBold := true

246
How can I remove all the columns

oDCOCX_Exontrol1:Columns:Clear()

245
How can I remove a column

oDCOCX_Exontrol1:Columns:Remove("A")

244
How can I get the number or the count of columns
local var_Count as USUAL

var_Count := oDCOCX_Exontrol1:Columns:Count

243
How can I change the font for all cells in the entire column

local var_ConditionalFormat as IConditionalFormat
local f as stdFont

// Generate Source for 'OLE Automation(stdole2.tlb)' server from Tools\Automation Server... with the PREFIX std
f := stdFont{"StdFont"}
	f:Name := "Tahoma"
	f:Size := 12
var_ConditionalFormat := oDCOCX_Exontrol1:ConditionalFormats:Add("1",nil)
	var_ConditionalFormat:Font := f
	var_ConditionalFormat:ApplyTo := exFormatToColumns
oDCOCX_Exontrol1:Columns:Add("Column")
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

242
How can I change the background color for all cells in the column

local var_ConditionalFormat as IConditionalFormat

var_ConditionalFormat := oDCOCX_Exontrol1:ConditionalFormats:Add("1",nil)
	var_ConditionalFormat:BackColor := RGB(255,0,0)
	var_ConditionalFormat:ApplyTo := exFormatToColumns
oDCOCX_Exontrol1:Columns:Add("Column")
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

241
How can I change the foreground color for all cells in the column

local var_ConditionalFormat as IConditionalFormat

var_ConditionalFormat := oDCOCX_Exontrol1:ConditionalFormats:Add("1",nil)
	var_ConditionalFormat:ForeColor := RGB(255,0,0)
	var_ConditionalFormat:ApplyTo := exFormatToColumns
oDCOCX_Exontrol1:Columns:Add("Column")
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

240
How can I show as strikeout all cells in the column

local var_ConditionalFormat as IConditionalFormat

var_ConditionalFormat := oDCOCX_Exontrol1:ConditionalFormats:Add("1",nil)
	var_ConditionalFormat:StrikeOut := true
	var_ConditionalFormat:ApplyTo := exFormatToColumns
oDCOCX_Exontrol1:Columns:Add("Column")
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

239
How can I underline all cells in the column

local var_ConditionalFormat as IConditionalFormat

var_ConditionalFormat := oDCOCX_Exontrol1:ConditionalFormats:Add("1",nil)
	var_ConditionalFormat:Underline := true
	var_ConditionalFormat:ApplyTo := exFormatToColumns
oDCOCX_Exontrol1:Columns:Add("Column")
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

238
How can I show in italic all data in the column

local var_ConditionalFormat as IConditionalFormat

var_ConditionalFormat := oDCOCX_Exontrol1:ConditionalFormats:Add("1",nil)
	var_ConditionalFormat:Italic := true
	var_ConditionalFormat:ApplyTo := exFormatToColumns
oDCOCX_Exontrol1:Columns:Add("Column")
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

237
How can I bold the entire column

local var_ConditionalFormat as IConditionalFormat

var_ConditionalFormat := oDCOCX_Exontrol1:ConditionalFormats:Add("1",nil)
	var_ConditionalFormat:Bold := true
	var_ConditionalFormat:ApplyTo := exFormatToColumns
oDCOCX_Exontrol1:Columns:Add("Column")
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

236
How can I display a computed column and highlight some values that are negative or less than a value

local var_ConditionalFormat as IConditionalFormat
local var_Items,var_Items1 as IItems

oDCOCX_Exontrol1:Columns:Add("A")
oDCOCX_Exontrol1:Columns:Add("B")
IColumn{oDCOCX_Exontrol1:Columns:Add("(A+B)*1.19")}:ComputedField := "(dbl(%0) + dbl(%1)) * 1.19"
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValue,var_Items:AddItem(1),1] := 2
var_Items1 := oDCOCX_Exontrol1:Items
	var_Items1:[CellValue,var_Items1:AddItem(10),1] := 20
var_ConditionalFormat := oDCOCX_Exontrol1:ConditionalFormats:Add("dbl(%2) > 10",nil)
	var_ConditionalFormat:Bold := true
	var_ConditionalFormat:ForeColor := RGB(255,0,0)
	var_ConditionalFormat:ApplyTo := 0x2 | 

235
Can I display a computed column so it displays the VAT, or SUM

local var_Items,var_Items1 as IItems

oDCOCX_Exontrol1:Columns:Add("A")
oDCOCX_Exontrol1:Columns:Add("B")
IColumn{oDCOCX_Exontrol1:Columns:Add("(A+B)*1.19")}:ComputedField := "(dbl(%0) + dbl(%1)) * 1.19"
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValue,var_Items:AddItem(1),1] := 2
var_Items1 := oDCOCX_Exontrol1:Items
	var_Items1:[CellValue,var_Items1:AddItem(10),1] := 20

234
How can I show a column that adds values in the cells

local var_Items,var_Items1 as IItems

oDCOCX_Exontrol1:Columns:Add("A")
oDCOCX_Exontrol1:Columns:Add("B")
IColumn{oDCOCX_Exontrol1:Columns:Add("A+B")}:ComputedField := "dbl(%0) + dbl(%1)"
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValue,var_Items:AddItem(1),1] := 2
var_Items1 := oDCOCX_Exontrol1:Items
	var_Items1:[CellValue,var_Items1:AddItem(10),1] := 20

233
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters

local var_Column as IColumn

var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("Filter")}
	var_Column:FilterOnType := true
	var_Column:DisplayFilterButton := true
	var_Column:AutoSearch := exContains
oDCOCX_Exontrol1:Items:AddItem("Canada")
oDCOCX_Exontrol1:Items:AddItem("USA")

232
Is there any function to filter the control's data as I type, something like filter on type

local var_Column as IColumn

var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("Filter")}
	var_Column:FilterOnType := true
	var_Column:DisplayFilterButton := true
oDCOCX_Exontrol1:Items:AddItem("Canada")
oDCOCX_Exontrol1:Items:AddItem("USA")

231
How can I programmatically filter a column

local var_Column as IColumn

var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("Filter")}
	var_Column:DisplayFilterButton := true
	var_Column:FilterType := exNonBlanks
oDCOCX_Exontrol1:Items:AddItem(nil)
oDCOCX_Exontrol1:Items:AddItem("not empty")
oDCOCX_Exontrol1:ApplyFilter()

230
How can I show or display the control's filter


IColumn{oDCOCX_Exontrol1:Columns:Add("Filter")}:DisplayFilterButton := true

229
How can I customize the items being displayed in the drop down filter window

local var_Column as IColumn

var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("Custom Filter")}
	var_Column:DisplayFilterButton := true
	var_Column:DisplayFilterPattern := false
	var_Column:CustomFilter := "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.txt|*.log"
	var_Column:FilterType := exPattern
	var_Column:Filter := "*.xls"
oDCOCX_Exontrol1:Items:AddItem("excel.xls")
oDCOCX_Exontrol1:Items:AddItem("word.doc")
oDCOCX_Exontrol1:Items:AddItem("pp.pps")
oDCOCX_Exontrol1:Items:AddItem("text.txt")
oDCOCX_Exontrol1:ApplyFilter()

228
How can I change the order or the position of the columns in the sort bar


oDCOCX_Exontrol1:SortBarVisible := true
oDCOCX_Exontrol1:SortBarColumnWidth := 48
IColumn{oDCOCX_Exontrol1:Columns:Add("C1")}:SortOrder := SortAscending
IColumn{oDCOCX_Exontrol1:Columns:Add("C2")}:SortOrder := SortDescending
oDCOCX_Exontrol1:Columns:[Item,"C2"]:SortPosition := 0

227
How do I arrange my columns on multiple levels


IColumn{oDCOCX_Exontrol1:Columns:Add("S")}:Width := 32
IColumn{oDCOCX_Exontrol1:Columns:Add("Level 2")}:LevelKey := 1
IColumn{oDCOCX_Exontrol1:Columns:Add("Level 3")}:LevelKey := 1
IColumn{oDCOCX_Exontrol1:Columns:Add("Level 4")}:LevelKey := 1
IColumn{oDCOCX_Exontrol1:Columns:Add("Level 1")}:LevelKey := "2"
IColumn{oDCOCX_Exontrol1:Columns:Add("Level 2")}:LevelKey := "2"
IColumn{oDCOCX_Exontrol1:Columns:Add("Level 3")}:LevelKey := "2"
IColumn{oDCOCX_Exontrol1:Columns:Add("Level 4")}:LevelKey := "2"
IColumn{oDCOCX_Exontrol1:Columns:Add("E")}:Width := 32

226
How do I arrange my columns on multiple lines


oDCOCX_Exontrol1:HeaderHeight := 32
IColumn{oDCOCX_Exontrol1:Columns:Add("")}:HTMLCaption := "Line 1<br>Line 2"

225
How can I display all cells using HTML format


IColumn{oDCOCX_Exontrol1:Columns:Add("HTML")}:[Def,exCellValueFormat] := 1
oDCOCX_Exontrol1:Items:AddItem("<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>.")

224
How can I display all cells using multiple lines

local var_Items as IItems

IColumn{oDCOCX_Exontrol1:Columns:Add("MultipleLine")}:[Def,exCellSingleLine] := false
IColumn{oDCOCX_Exontrol1:Columns:Add("SingleLine")}:[Def,exCellSingleLine] := true
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValue,var_Items:AddItem("This is a bit of long text that should break the line"),1] := "this is a bit of long text that's displayed on a single line"

223
How do change the vertical alignment for all cells in the column

local var_Items,var_Items1 as IItems

IColumn{oDCOCX_Exontrol1:Columns:Add("MultipleLine")}:[Def,exCellSingleLine] := false
IColumn{oDCOCX_Exontrol1:Columns:Add("VAlign")}:[Def,exCellVAlignment] := 2
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValue,var_Items:AddItem("This is a bit of long text that should break the line"),1] := "bottom"
var_Items1 := oDCOCX_Exontrol1:Items
	var_Items1:[CellValue,var_Items1:AddItem("This is a bit of long text that should break the line"),1] := "bottom"

222
How do change the foreground color for all cells in the column


IColumn{oDCOCX_Exontrol1:Columns:Add("ForeColor")}:[Def,exCellForeColor] := 255
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

221
How do change the background color for all cells in the column


IColumn{oDCOCX_Exontrol1:Columns:Add("BackColor")}:[Def,exCellBackColor] := 255
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

220
How do I show buttons for all cells in the column

local var_Column as IColumn

var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("Button")}
	var_Column:[Def,exCellHasButton] := true
	var_Column:[Def,exCellButtonAutoWidth] := true
oDCOCX_Exontrol1:Items:AddItem(" Button 1 ")
oDCOCX_Exontrol1:Items:AddItem(" Button 2 ")

219
How do I show buttons for all cells in the column


IColumn{oDCOCX_Exontrol1:Columns:Add("Button")}:[Def,exCellHasButton] := true
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

218
How do I display radio buttons for all cells in the column


IColumn{oDCOCX_Exontrol1:Columns:Add("Radio")}:[Def,exCellHasRadioButton] := true
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

217
How do I display checkboxes for all cells in the column


IColumn{oDCOCX_Exontrol1:Columns:Add("Check")}:[Def,exCellHasCheckBox] := true
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

216
How can I display a tooltip when the cursor hovers the column


IColumn{oDCOCX_Exontrol1:Columns:Add("tooltip")}:ToolTip := "This is a bit of text that is shown when user hovers the column."

215
Is there any function to assign a key to a column instead using its name or capion

IColumn{oDCOCX_Exontrol1:Columns:Add("Data")}:Key := "DKey"
oDCOCX_Exontrol1:Columns:[Item,"DKey"]:Caption := "new caption"

214
Is there any function to assign any extra data to a column

IColumn{oDCOCX_Exontrol1:Columns:Add("Data")}:Data := "your extra data"

213
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header


IColumn{oDCOCX_Exontrol1:Columns:Add("Sort")}:DefaultSortOrder := true

212
How can I specify the maximum width for the column, if I use WidthAutoResize property

local var_Column as IColumn

var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("Auto")}
	var_Column:WidthAutoResize := true
	var_Column:MinWidthAutoResize := 32
	var_Column:MaxWidthAutoResize := 128
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

211
How can I specify the minimum width for the column, if I use WidthAutoResize property

local var_Column as IColumn

var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("Auto")}
	var_Column:WidthAutoResize := true
	var_Column:MinWidthAutoResize := 32
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

210
Is there any option to resize the column based on its data, captions


IColumn{oDCOCX_Exontrol1:Columns:Add("A")}:WidthAutoResize := true
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

209
How can I align the icon in the column's header in the center

local var_Column as IColumn

oDCOCX_Exontrol1:Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("")}
	var_Column:HeaderImage := 1
	var_Column:HeaderImageAlignment := CenterAlignment

208
How do I align the icon in the column's header to the right

local var_Column as IColumn

oDCOCX_Exontrol1:Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yNAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("ColumnName")}
	var_Column:HeaderImage := 1
	var_Column:HeaderImageAlignment := RightAlignment

207
How do I show or hide the sorting icons, but still need sorting

IColumn{oDCOCX_Exontrol1:Columns:Add("Sorted")}:SortOrder := SortAscending
oDCOCX_Exontrol1:Columns:[Item,0]:DisplaySortIcon := false

206
How do I enable or disable the entire column

local var_Items,var_Items1 as IItems

oDCOCX_Exontrol1:Columns:Add("C1")
IColumn{oDCOCX_Exontrol1:Columns:Add("Disabled")}:Enabled := false
var_Items := oDCOCX_Exontrol1:Items
	var_Items:[CellValue,var_Items:AddItem(0),1] := "0.1"
var_Items1 := oDCOCX_Exontrol1:Items
	var_Items1:[CellValue,var_Items1:AddItem(1),1] := "1.1"

205
How do I disable drag and drop columns

IColumn{oDCOCX_Exontrol1:Columns:Add("C1")}:AllowDragging := false
IColumn{oDCOCX_Exontrol1:Columns:Add("C2")}:AllowDragging := false

204
How do I disable resizing a column at runtime

IColumn{oDCOCX_Exontrol1:Columns:Add("Unsizable")}:AllowSizing := false
oDCOCX_Exontrol1:Columns:Add("C2")
oDCOCX_Exontrol1:Columns:Add("C3")
oDCOCX_Exontrol1:Columns:Add("C4")

203
How can I align the column to the right, and its caption too

local var_Column as IColumn

var_Column := IColumn{oDCOCX_Exontrol1:Columns:Add("Column")}
	var_Column:Alignment := RightAlignment
	var_Column:HeaderAlignment := RightAlignment
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

202
How can I align the column to the right


IColumn{oDCOCX_Exontrol1:Columns:Add("Column")}:Alignment := RightAlignment
oDCOCX_Exontrol1:Items:AddItem(0)
oDCOCX_Exontrol1:Items:AddItem(1)

201
How do I change the column's caption


IColumn{oDCOCX_Exontrol1:Columns:Add("Column")}:Caption := "new caption"